#ifndef H_Util
#define H_Util
#include "Pixel.hpp"
#include <math.h>
#include <vector>
using namespace std;
class Util{
  public:
      Util();
      static double CalculEcartType(vector<Pixel> & extrait, double & moyenne);
      static double CalculEcartType(vector<Pixel> & extrait);
      static double ecartType;
      static double tailleMinimale;
      static double resemblance;
  private:
    static void Calcul(vector<Pixel>  &extrait,double& S1,double& S2);
    static double CalculMoyenne(double S1,int nombre);
    static double CalculVariance(double moyenne,double S2,int nombre);
};
#endif
